﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace KDSugar.Galaxy.API
{
    /// <summary>
    /// 执行数据信息类
    /// </summary>
    public class ExecuteDataInfo
    {
        /// <summary>
        /// 请求数据
        /// </summary>
        public string RequestData
        {
            get
            {
                return _RequestData;
            }
            set
            {
                _RequestData = value;
                RequestDataDT = DateTime.Now;
            }
        }

        /// <summary>
        /// _请求数据
        /// </summary>
        private string _RequestData;

        /// <summary>
        /// 请求数据发生时间
        /// </summary>
        public DateTime RequestDataDT { get; private set; }

        /// <summary>
        /// 返回数据
        /// </summary>
        public string ResponseData
        {
            get
            {
                return _ResponseData;
            }
            set
            {
                _ResponseData = value;
                ResponseDataDT = DateTime.Now;
            }
        }

        /// <summary>
        /// _返回数据
        /// </summary>
        private string _ResponseData;

        /// <summary>
        /// 返回数据发生时间
        /// </summary>
        public DateTime ResponseDataDT { get; private set; }

        /// <summary>
        /// 返回数据是否成功
        /// </summary>
        public bool IsResponseSuccess { get; set; } = true;
    }
}
